﻿@model QDT.Core.Members.User
@{
    ViewBag.Title = "用户账户设置";
}   
<script type="text/javascript" src="@Url.Content("~/Content/Default/JS/jquery.validate.js")"> </script>
<script type="text/javascript" src="@Url.Content("~/Content/Default/JS/messages_zh.js")"> </script>
<script type="text/javascript">
    $().ready(function () {
        $('form').validate({
            rules: {
                confirm: {
                    equalTo: "#newPass"
                }
            },
            messages: {
                confirm: "<br/>两次密码不相同！"
            }
        });
    });
</script>

<div class="ui-body">
        <div class="ui-inner">
            <div class="ui-grid-row">

            @Html.Partial("_UserMenu", MenuRoute.SafeCenter)

                <div class="ui-grid-20">
                    <div class="ui-box">
                        <div class="ui-box-hd">
                            <h1 class="ui-box-title">修改密码</h1>
                        </div>

                        <form class="ui-form" name="" method="post" action="@Url.Action("PostPassword")">
                            <fieldset>
                                <legend>修改密码</legend>

                                <div class="ui-form-item">
                                    <label for="" class="ui-label">
                                        <span class="ui-form-required">*</span>当前密码
                                    </label>
                                    <input class="ui-input ui-input-large" type="password"  id="oldPass" name="oldPass"  /> 
                                </div>

                                <div class="ui-form-item">
                                    <label for="" class="ui-label"><span class="ui-form-required">*</span>新密码</label>
                                    <input class="ui-input ui-input-large" type="password"  id="newPass" name="newPass"  />
                                </div>
                                <div class="ui-form-item">
                                    <label for="" class="ui-label"><span class="ui-form-required">*</span>确认密码</label>
                                    <input class="ui-input ui-input-large" type="password"  id="confirm" name="confirm"  />
                                </div>

                                <div class="ui-form-item">
                                    <input type="hidden" name="Id" value="@Model.ID"/>
                                    <input type="submit" class="ui-button ui-button-orange big" value="确定"/>
                                    <a href="@Url.Action("UserCenter")" class="ui-button ui-button-gray big">返回</a>
                                </div>

                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>